package com.study.model.mdao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONObject;

/**
 * 收货地址
 * @author 郭星
 *
 */
@Mapper
public interface AddressdetailMapper {


	/**
	 * 查询对应id的地址详情
	 * @param id
	 * @return
	 */
	JSONObject findObjectById(Integer id);

	/**
	 * 查找最大值id
	 * @return
	 */
	int findMaxId();
    /**
     * Wcx 
     * 添加地址
     */
	int address(@Param("adid")String adid, @Param("address")String cumeradiss, @Param("name")String custer, @Param("phone")String famoney);

	JSONObject selectaddress(@Param("address")String cumeradiss,  @Param("name")String custer,@Param("phone")String famoney);

}
